package org.dyndns.opendemogroup.optimizer;

import static org.junit.Assert.*;
import org.junit.Test;

/**
 * A class to test the class ProfileSplitter
 */
public class ProfileSplitterTest
{

	/**
	 * Tests the <i>linearize</i> method with a typical input.
	 */
	@Test
	public void linearize_Typical ( )
	{
		String input = "<xml>\r\n\t<element></element>\r\n</xml>";
		String actual = ProfileSplitter.linearize ( input );
		String expected =
			"<xml>&#0D;&#0A;&#09;<element></element>&#0D;&#0A;</xml>";
		assertEquals ( expected, actual );
	}

}
